package com.sptpc.hellospring.repository;

import com.sptpc.hellospring.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface CategoryRepository extends JpaRepository<Category,Long> {

    Optional<Category> findCategoryByNameLike(String name); //where name like 参数

}